#!/bin/bash
# Author： Syuan-Rong Chen
# E-mail： calvin.atx@gmail.com
# Blog：   http://calvinit.blogspot.com
# Date : 20100818
case $1 in
	"main.sh") 
		iftext1="Operation of the network card status"
		iftext2="Routing table"
		opmtitle="Welcome Calvin_MIS tools v1.100816"
		opmsub="Please select the function you want to"
		opm_textw="View network status"
		opm_text1="Edit interface(/etc/network/interfaces)"
		opm_text2="Edit DNS settings(/etc/resolv.conf)"
		opm_text3="Remove MAC record(/etc/udev/rules.d/70-persistent-net.rules)"
		opm_text4="Network restart(/etc/init.d/networking restart)"
		opm_text5="Advanced Network Services"
		opm_textc="About Me"
		opm_text0="Exit"
		select0="Please select:"
		select1="Please select the correct"
		selectdel="Want to delete?(y/n)"
		nofile="no files"
		ddel="delete done"
		nodel="user cancel"
		;;
	"ns.sh") 
		opmtitle="Welcome Calvin_MIS tools v1.100816"
		opmsub="Select the services setting(Advanced)"
		opm_text1="NAT"
		opm_text2="Router"
		opm_text3="DHCP"
		opm_text4="DNS"
		opm_text5="SAMBA"
		opm_text6="Firewall"
		opm_text7="Apache HTTP Server"
		opm_text8="Mail Server"
		opm_text9="ClamAV"
		opm_text0="Go back"
		select0="Please select:"
		select1="Please select the correct"	
		;;
	"nat.sh") 
		opmtitle="Welcome Calvin_MIS tools v1.100816"
		opmsub="Please follow the order setting(Advanced)"
		select0="Please select:"
		select1="Please select the correct"
		opm_text0="Go Back"
		opm_textt1="First Setting"
		opm_text1="1.start NAT(Edit /etc/rc.local)"
		opm_text2="2.start ipv4 forward(Edit /etc/sysctl.conf)"
		opm_text3="3.reboot,entry NAT"
		opm_textt2="Advanced Maintenance"
		opm_text4="Manual Edit /etc/rc.local"
		opm_text5="Manual Edit /etc/sysctl.conf"
		opm_text6="Recovery from /usr/cbin/d-cmis/rc.local"
		opm_text7="Recovery from /usr/cbin/d-cmis/sysctl.conf"
		nat_text1=" 將會在/etc/rc.local檔案加入以下這行\n
		iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE\n
		ppp0的部份為你真實IP的那張網卡裝置\n
		若您取得真實IP的網卡為eth0就改為eth0\n\n
		將會自動備份檔案到/usr/cbin/d-cmis/rc.local\n
		改完記得要存檔退出，確認要編輯此系統重要檔案?(y/n)"
		nat_text2=" 將會把/etc/sysctl.conf檔案中的以下這行取消註解以啟動轉送功能\n
		#net.ipv4.ip_forward=1  (請確認此行是否有把#號拿掉取消註解)\n\n
		將會自動備份檔案到/usr/cbin/d-cmis/sysctl.conf\n
		改完記得要存檔退出，確認要編輯此系統重要檔案?(y/n)"
		noy="user cancel"
		;;
esac
